//
//  RBRequestHM.h
//  Culture
//
//  Created by Lan on 2017/12/26.
//  Copyright © 2017年 SummerTea. All rights reserved.
//  抽一个基类

#import <Foundation/Foundation.h>
#import "RBResponse.h"
#import "RBHTTPManager.h"
#import "RBURLConfig.h"
#import "RBHTTPRequestTip.h"

#define kRBRequestData @"kRBRequestData"
#define kRBRequestMime @"kRBRequestMime"//@"image/jpeg"
#define kRBRequestName @"kRBRequestName"
#define kRBRequestFileName @"kRBRequestFileName"

@interface RBRequestHM : NSObject

@property(nonatomic, strong) RBHTTPManager *manager;
@property(nonatomic, strong) NSMutableDictionary *paramDicM;

- (void)requestWithParam: (void(^)(NSMutableDictionary *dicM))paramSetupBlock
                     log: (BOOL)log
                    post: (BOOL)post
       cancelLastRequest: (BOOL)cancelLastRequest
               fileParam: (NSDictionary *)fileParam
            fileProgress: (void(^)(NSProgress * uploadProgress))progressBlock
           responseClass: (Class)responseClass
                pathName: (NSString *)pathName
              completion: (void(^)(id response))responseBlock;

@end
